<template>
  <div class="banner">
    <div class="p-6 backdrop">

      <div class="flex items-center justify-between">
        <div>
          <span class="text-white text-sm">{{ subTitle }}</span>
          <h1 class="text-white font-bold text-xl">{{ title }}</h1>
        </div>
        <div>
          <slot />
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'Banner',
  props: {
    title: String,
    subTitle: String
  }
}

</script>

<style lang="scss" scoped>
.banner {
   background-image: url('../../assets/images/banner/group-banner.png');
   background-position: 0px 0px;
   background-size: cover;

   .backdrop {
    backdrop-filter: blur(4px);
    background-color: var(--board-header-background-color);
   }
}
</style>
